package com.javatip.project.Controller.getUserInfo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.javatip.project.Controller.getUserInfo.mapper.GetUserRoleMapper;

@Service
public class GetUserRoleServiceImpl implements IGetUserRoleService {

    @Autowired
    private GetUserRoleMapper userMapper;

    @Override
    public int getUserRole(Long currentUserId) {
        int result = userMapper.getUserRole(currentUserId);
        return result;
    }
}
